Integrand size = 13, antiderivative size = 55 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a}-\frac {(15-8 \csc (x)) \tan (x)}{15 a}+\frac {(5-4 \csc (x)) \tan ^3(x)}{15 a}-\frac {(1-\csc (x)) \tan ^5(x)}{5 a} \]
Leaf count is larger than twice the leaf count of optimal. \(111\) vs. \(2(55)=110\).
Time = 0.30 (sec) , antiderivative size = 111, normalized size of antiderivative = 2.02 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {200+6 (-89+120 x) \cos (x)+128 \cos (2 x)-178 \cos (3 x)+240 x \cos (3 x)+184 \cos (4 x)-64 \sin (x)-178 \sin (2 x)+240 x \sin (2 x)-128 \sin (3 x)-89 \sin (4 x)+120 x \sin (4 x)}{960 a \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )^3 \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )^5} \]
(200 + 6*(-89 + 120*x)*Cos[x] + 128*Cos[2*x] - 178*Cos[3*x] + 240*x*Cos[3* x] + 184*Cos[4*x] - 64*Sin[x] - 178*Sin[2*x] + 240*x*Sin[2*x] - 128*Sin[3* x] - 89*Sin[4*x] + 120*x*Sin[4*x])/(960*a*(Cos[x/2] - Sin[x/2])^3*(Cos[x/2 ] + Sin[x/2])^5)
Time = 0.45 (sec) , antiderivative size = 64, normalized size of antiderivative = 1.16, number of steps used = 12, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.923, Rules used = {3042, 4376, 25, 3042, 4370, 25, 3042, 4370, 25, 3042, 4370, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\tan ^4(x)}{a \csc (x)+a} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\cot (x)^4 (a \csc (x)+a)}dx\) |
\(\Big \downarrow \) 4376 |
\(\displaystyle \frac {\int -\left ((a-a \csc (x)) \tan ^6(x)\right )dx}{a^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\int (a-a \csc (x)) \tan ^6(x)dx}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\int \frac {a-a \csc (x)}{\cot (x)^6}dx}{a^2}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle -\frac {\frac {1}{5} \int -\left ((5 a-4 a \csc (x)) \tan ^4(x)\right )dx+\frac {1}{5} \tan ^5(x) (a-a \csc (x))}{a^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\frac {1}{5} \tan ^5(x) (a-a \csc (x))-\frac {1}{5} \int (5 a-4 a \csc (x)) \tan ^4(x)dx}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\frac {1}{5} \tan ^5(x) (a-a \csc (x))-\frac {1}{5} \int \frac {5 a-4 a \csc (x)}{\cot (x)^4}dx}{a^2}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle -\frac {\frac {1}{5} \left (-\frac {1}{3} \int -\left ((15 a-8 a \csc (x)) \tan ^2(x)\right )dx-\frac {1}{3} \tan ^3(x) (5 a-4 a \csc (x))\right )+\frac {1}{5} \tan ^5(x) (a-a \csc (x))}{a^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\frac {1}{5} \left (\frac {1}{3} \int (15 a-8 a \csc (x)) \tan ^2(x)dx-\frac {1}{3} \tan ^3(x) (5 a-4 a \csc (x))\right )+\frac {1}{5} \tan ^5(x) (a-a \csc (x))}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\frac {1}{5} \left (\frac {1}{3} \int \frac {15 a-8 a \csc (x)}{\cot (x)^2}dx-\frac {1}{3} \tan ^3(x) (5 a-4 a \csc (x))\right )+\frac {1}{5} \tan ^5(x) (a-a \csc (x))}{a^2}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle -\frac {\frac {1}{5} \left (\frac {1}{3} (\int -15 adx+\tan (x) (15 a-8 a \csc (x)))-\frac {1}{3} \tan ^3(x) (5 a-4 a \csc (x))\right )+\frac {1}{5} \tan ^5(x) (a-a \csc (x))}{a^2}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {\frac {1}{5} \tan ^5(x) (a-a \csc (x))+\frac {1}{5} \left (\frac {1}{3} (\tan (x) (15 a-8 a \csc (x))-15 a x)-\frac {1}{3} \tan ^3(x) (5 a-4 a \csc (x))\right )}{a^2}\) |
-((((a - a*Csc[x])*Tan[x]^5)/5 + (-1/3*((5*a - 4*a*Csc[x])*Tan[x]^3) + (-1 5*a*x + (15*a - 8*a*Csc[x])*Tan[x])/3)/5)/a^2)
3.1.1.3.1 Defintions of rubi rules used
Int[(cot[(c_.) + (d_.)*(x_)]*(e_.))^(m_)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + ( a_)), x_Symbol] :> Simp[(-(e*Cot[c + d*x])^(m + 1))*((a + b*Csc[c + d*x])/( d*e*(m + 1))), x] - Simp[1/(e^2*(m + 1)) Int[(e*Cot[c + d*x])^(m + 2)*(a* (m + 1) + b*(m + 2)*Csc[c + d*x]), x], x] /; FreeQ[{a, b, c, d, e}, x] && L tQ[m, -1]
Int[(cot[(c_.) + (d_.)*(x_)]*(e_.))^(m_)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + ( a_))^(n_), x_Symbol] :> Simp[a^(2*n)/e^(2*n) Int[(e*Cot[c + d*x])^(m + 2* n)/(-a + b*Csc[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && EqQ[a ^2 - b^2, 0] && ILtQ[n, 0]
Time = 0.55 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.53
method | result | size |
default | \(\frac {-\frac {1}{6 \left (\tan \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {1}{4 \left (\tan \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {5}{8 \left (\tan \left (\frac {x}{2}\right )-1\right )}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )+\frac {2}{5 \left (\tan \left (\frac {x}{2}\right )+1\right )^{5}}-\frac {1}{\left (\tan \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {1}{\left (\tan \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {11}{8 \left (\tan \left (\frac {x}{2}\right )+1\right )}}{a}\) | \(84\) |
risch | \(\frac {x}{a}+\frac {\frac {62 i {\mathrm e}^{2 i x}}{15}+\frac {146 \,{\mathrm e}^{3 i x}}{15}+\frac {62 \,{\mathrm e}^{i x}}{15}+\frac {10 i {\mathrm e}^{4 i x}}{3}+\frac {26 \,{\mathrm e}^{5 i x}}{3}+\frac {46 i}{15}-2 i {\mathrm e}^{6 i x}+2 \,{\mathrm e}^{7 i x}}{\left (i+{\mathrm e}^{i x}\right )^{5} \left ({\mathrm e}^{i x}-i\right )^{3} a}\) | \(87\) |
64/a*(-1/384/(tan(1/2*x)-1)^3-1/256/(tan(1/2*x)-1)^2+5/512/(tan(1/2*x)-1)+ 1/32*arctan(tan(1/2*x))+1/160/(tan(1/2*x)+1)^5-1/64/(tan(1/2*x)+1)^4+1/64/ (tan(1/2*x)+1)^2+11/512/(tan(1/2*x)+1))
Time = 0.24 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.05 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {15 \, x \cos \left (x\right )^{3} + 23 \, \cos \left (x\right )^{4} - 19 \, \cos \left (x\right )^{2} + {\left (15 \, x \cos \left (x\right )^{3} - 8 \, \cos \left (x\right )^{2} + 1\right )} \sin \left (x\right ) + 4}{15 \, {\left (a \cos \left (x\right )^{3} \sin \left (x\right ) + a \cos \left (x\right )^{3}\right )}} \]
1/15*(15*x*cos(x)^3 + 23*cos(x)^4 - 19*cos(x)^2 + (15*x*cos(x)^3 - 8*cos(x )^2 + 1)*sin(x) + 4)/(a*cos(x)^3*sin(x) + a*cos(x)^3)
\[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {\int \frac {\tan ^{4}{\left (x \right )}}{\csc {\left (x \right )} + 1}\, dx}{a} \]
Leaf count of result is larger than twice the leaf count of optimal. 194 vs. \(2 (47) = 94\).
Time = 0.33 (sec) , antiderivative size = 194, normalized size of antiderivative = 3.53 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {2 \, {\left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} - \frac {46 \, \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} - \frac {13 \, \sin \left (x\right )^{3}}{{\left (\cos \left (x\right ) + 1\right )}^{3}} + \frac {100 \, \sin \left (x\right )^{4}}{{\left (\cos \left (x\right ) + 1\right )}^{4}} + \frac {35 \, \sin \left (x\right )^{5}}{{\left (\cos \left (x\right ) + 1\right )}^{5}} - \frac {30 \, \sin \left (x\right )^{6}}{{\left (\cos \left (x\right ) + 1\right )}^{6}} - \frac {15 \, \sin \left (x\right )^{7}}{{\left (\cos \left (x\right ) + 1\right )}^{7}} + 8\right )}}{15 \, {\left (a + \frac {2 \, a \sin \left (x\right )}{\cos \left (x\right ) + 1} - \frac {2 \, a \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} - \frac {6 \, a \sin \left (x\right )^{3}}{{\left (\cos \left (x\right ) + 1\right )}^{3}} + \frac {6 \, a \sin \left (x\right )^{5}}{{\left (\cos \left (x\right ) + 1\right )}^{5}} + \frac {2 \, a \sin \left (x\right )^{6}}{{\left (\cos \left (x\right ) + 1\right )}^{6}} - \frac {2 \, a \sin \left (x\right )^{7}}{{\left (\cos \left (x\right ) + 1\right )}^{7}} - \frac {a \sin \left (x\right )^{8}}{{\left (\cos \left (x\right ) + 1\right )}^{8}}\right )}} + \frac {2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right )}{a} \]
2/15*(sin(x)/(cos(x) + 1) - 46*sin(x)^2/(cos(x) + 1)^2 - 13*sin(x)^3/(cos( x) + 1)^3 + 100*sin(x)^4/(cos(x) + 1)^4 + 35*sin(x)^5/(cos(x) + 1)^5 - 30* sin(x)^6/(cos(x) + 1)^6 - 15*sin(x)^7/(cos(x) + 1)^7 + 8)/(a + 2*a*sin(x)/ (cos(x) + 1) - 2*a*sin(x)^2/(cos(x) + 1)^2 - 6*a*sin(x)^3/(cos(x) + 1)^3 + 6*a*sin(x)^5/(cos(x) + 1)^5 + 2*a*sin(x)^6/(cos(x) + 1)^6 - 2*a*sin(x)^7/ (cos(x) + 1)^7 - a*sin(x)^8/(cos(x) + 1)^8) + 2*arctan(sin(x)/(cos(x) + 1) )/a
Time = 0.26 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.45 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a} + \frac {15 \, \tan \left (\frac {1}{2} \, x\right )^{2} - 36 \, \tan \left (\frac {1}{2} \, x\right ) + 17}{24 \, a {\left (\tan \left (\frac {1}{2} \, x\right ) - 1\right )}^{3}} + \frac {55 \, \tan \left (\frac {1}{2} \, x\right )^{4} + 260 \, \tan \left (\frac {1}{2} \, x\right )^{3} + 450 \, \tan \left (\frac {1}{2} \, x\right )^{2} + 300 \, \tan \left (\frac {1}{2} \, x\right ) + 71}{40 \, a {\left (\tan \left (\frac {1}{2} \, x\right ) + 1\right )}^{5}} \]
x/a + 1/24*(15*tan(1/2*x)^2 - 36*tan(1/2*x) + 17)/(a*(tan(1/2*x) - 1)^3) + 1/40*(55*tan(1/2*x)^4 + 260*tan(1/2*x)^3 + 450*tan(1/2*x)^2 + 300*tan(1/2 *x) + 71)/(a*(tan(1/2*x) + 1)^5)
Time = 18.99 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.51 \[ \int \frac {\tan ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a}-\frac {-2\,{\mathrm {tan}\left (\frac {x}{2}\right )}^7-4\,{\mathrm {tan}\left (\frac {x}{2}\right )}^6+\frac {14\,{\mathrm {tan}\left (\frac {x}{2}\right )}^5}{3}+\frac {40\,{\mathrm {tan}\left (\frac {x}{2}\right )}^4}{3}-\frac {26\,{\mathrm {tan}\left (\frac {x}{2}\right )}^3}{15}-\frac {92\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2}{15}+\frac {2\,\mathrm {tan}\left (\frac {x}{2}\right )}{15}+\frac {16}{15}}{a\,{\left (\mathrm {tan}\left (\frac {x}{2}\right )-1\right )}^3\,{\left (\mathrm {tan}\left (\frac {x}{2}\right )+1\right )}^5} \]